import request from '@/utils/request'

// 查询进销存盘点列表 (分页)
export function selectTakeStockPage(query) {
    return request({
        url: '/msip/ess/selectTakeStockPage',
        method: 'get',
        params: query
    })
}


// 查询进销存采购列表 (分页)
export function selectPurchasePage(query) {
    return request({
        url: '/msip/ess/selectPurchasePage',
        method: 'get',
        params: query
    })
}

// 查询进销存采购退货列表 (分页)
export function selectPurchaseUndoPage(query) {
    return request({
        url: '/msip/ess/selectPurchaseUndoPage',
        method: 'get',
        params: query
    })
}

// 查询进销存销售列表 (分页)
export function selectSalePage(query) {
    return request({
        url: '/msip/ess/selectSalePage',
        method: 'get',
        params: query
    })
}

// 查询进销存销售退货列表 (分页)
export function selectSaleUndoPage(query) {
    return request({
        url: '/msip/ess/selectSaleUndoPage',
        method: 'get',
        params: query
    })
}

// 进销存盘存上传
export function takeStockUpload(data) {
    return request({
        url: '/msip/ess/takeStockUpload',
        method: 'post',
        data: data
    })
}

// 进销存采购上传
export function purchaseUpload(data) {
    return request({
        url: '/msip/ess/purchaseUpload',
        method: 'post',
        data: data
    })
}

// 进销存采购退货上传
export function purchaseUndoUpload(data) {
    return request({
        url: '/msip/ess/purchaseUndoUpload',
        method: 'post',
        data: data
    })
}

// 进销存销售上传
export function saleUpload(data) {
    return request({
        url: '/msip/ess/saleUpload',
        method: 'post',
        data: data
    })
}

// 进销存销售退货上传
export function saleUndoUpload(data) {
    return request({
        url: '/msip/ess/saleUndoUpload',
        method: 'post',
        data: data
    })
}

// 查询错误日志
export function errorLog(query) {
    return request({
        url: '/msip/ess/errorLog',
        method: 'get',
        params: query
    })
}

